//
//  ShaiTuModel.swift
//  约健
//
//  Created by tyh on 2017/10/16.
//  Copyright © 2017年 tyh. All rights reserved.
//
/*
 "id":"53",
 "title":"",
 "image_num":"0",
 "thumb0":"st/thumb/20171016/thumb_20171016090452_990507789.jpeg",
 "thumb0size":"1K",
 "thumb1":"",
 "thumb1size":"",
 "thumb2":"",
 "thumb2size":"",
 "club_id":"0",
 "replynum":"0",
 "userid":"280",
 "hits":"0",
 "insert_time":null,
 "update_time":"2017-10-16 09:04:52",
 "check_userid":"1",
 "checktime":null,
 "checkstate":"1",
 "listorder":"1",
 "vstate":"1",
 "shaier":{
 "user_name":"13342282081",
 "photo":null
 },
 "club_name":null,
 "comment":Array[0]
 },
 */

import UIKit

class ShaiTuModel: NSObject {
    var id:NSString!
    var title:NSString!
    var image_num:NSString!
    var thumb0:NSString!
    var thumb0size:NSString!
    var thumb1:NSString!
    var thumb1size:NSString!
    var thumb2:NSString!
    var thumb2size:NSString!
    var club_id:NSString!
    var replynum:NSString!
    var userid:NSString!
    var hits:NSString!
    var insert_time:NSString!
    var update_time:NSString!
    var check_userid:NSString!
    var checktime:NSString!
    var checkstate:NSString!
    var listorder:NSString!
    var vstate:NSString!
    var shaier:NSDictionary!
    var club_name:NSString!
    var comment:NSArray!
    
    class func ShaiTuModelWithDict(_ dict:NSDictionary) -> ShaiTuModel{
        let model = ShaiTuModel()
        model.setValuesForKeys(dict as! [String: NSObject])
        
        /*
           model.id = dict.value(forKey: "id") as! NSString!
           model.title = dict.value(forKey: "title") as! NSString!
           model.image_num = dict.value(forKey: "image_num") as! NSString!
           model.thumb0 = dict.value(forKey: "thumb0") as! NSString!
           model.thumb1 = dict.value(forKey: "rthumb1") as! NSString!
           model.thumb2 = dict.value(forKey: "thumb2") as! NSString!
           model.thumb0size = dict.value(forKey: "thumb0size") as! NSString!
           model.thumb1size = dict.value(forKey: "thumb1size") as! NSString!
           model.thumb2size = dict.value(forKey: "thumb0size") as! NSString!
           model.club_id = dict.value(forKey: "club_id") as! NSString!
           model.replynum = dict.value(forKey: "replynum") as! NSString!
           model.userid = dict.value(forKey: "userid") as! NSString!
           model.hits = dict.value(forKey: "hits") as! NSString!
           model.insert_time = dict.value(forKey: "insert_time") as! NSString!
           model.update_time = dict.value(forKey: "update_time") as! NSString!
           model.check_userid = dict.value(forKey: "check_userid") as! NSString!
           model.checktime = dict.value(forKey: "checktime") as! NSString!
           model.checkstate = dict.value(forKey: "checkstate") as! NSString!
           model.listorder = dict.value(forKey: "listorder") as! NSString!
           model.vstate = dict.value(forKey: "vstate") as! NSString!
           model.shaier = dict.value(forKey: "shaier") as! NSDictionary!
           model.club_name = dict.value(forKey: "club_name") as! NSString!
           model.comment = dict.value(forKey: "comment") as! NSArray!
 */
        
        return model
    }

}
